package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.domain.e3sp.maindata.SparePartBaseView;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 支给件详情
 * @ClassName: com.xframe.domain.e3sp.basedata.SupPartsD
 * @Author: lmx
 * @CreateTime: 2024/01/14
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t02_sup_parts_d", label = "支给件详情")
@XBelongsTo(typeName = "com.xframe.domain.e3sp.maindata.SparePartBaseView",foreignKey = "sparePartId", targetKey = "sparePartId",as = "refSparePartBaseView")
public class SupPartsD extends BaseModel {
    /**
     * 支给件详情ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(primaryKeyFlag = true,desc = "支给件详情ID")
    private Long supPartsDId;

    /**
     * 备件清单ID
     */
    @XQueryCondition
    @XColumn(name = "spare_part_id", desc = "备件清单ID")
    private Long sparePartId;

    /**
     * 支给件ID
     */
    @XColumn(desc = "支给件ID")
    private Long supPartId;

    /**
     * 数量
     */
    @XColumn(desc = "数量",length = 11)
    @XGridTableRef
    private Long qty;

    /**
     * 发文号
     */
    @XColumn(desc = "发文号",length = 50,nullFlag = true)
    private String docNumber;


    /**
     * 依据
     */
    @XColumn(desc = "依据",length = 500,nullFlag = true)
    private String supDSummary;

    /**
     * 备注
     */
    @XColumn(desc = "备注",length = 500,nullFlag = true)
    private String remark;


    private SparePartBaseView refSparePartBaseView;

}
